<!DOCTYPE html>
<html>
<body>
<iframe></iframe>
<script>
window[0].addEventListener('copy', (e) => {
  document.querySelector('iframe').remove();
  // Finish asynchronously, to make sure the renderer doesn't crash.
  window.setTimeout(() => { document.title = 'done'; });
});
</script>
</body>
</html>
